package day20171115;

import java.io.IOException;

public class je080102 {
    public static void main(String[] args) {
        System.out.println("输入一行字符：");
        byte[] buffer=new byte[55666];
        int count= 0;
        try {
            count = System.in.read(buffer);
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println("output:");
        for (int i=0;i<count;i++){
            System.out.println("     "+buffer[i]);
        }
        System.out.println();
        for (int i=0;i<count;i++){
            System.out.print((char)buffer[i]);

        }
        System.out.println("count="+count);
    }
}
